package com.xiangshizhineng.tianzhangzhi.app.model.response;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseDTO;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@ApiModel(description = "田长巡查信息附件表（任务异常上传图片）")
@EqualsAndHashCode(callSuper = true)
@TableName("tz_patrol_file")
public class PatrolFileResponse extends BaseDTO implements Serializable {
    /**
     * 任务id
     */
    @ApiModelProperty(value = "任务id")
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long taskId;

    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径")
    private String filePath;
}
